# -*- mode: python ; coding: utf-8 -*-

# 在文件开头添加：
block_cipher = None  # 新增这一行

# random_number02.spec
# ...
a = Analysis(
    ['random_number02.py'],
    pathex=['.'],
    binaries=[],
    datas=[('school_logo.jpg', '.')],  # 添加数据文件
    hiddenimports=['openpyxl'],  # 添加隐藏导入
    hookspath=[],
    hooksconfig={},
    runtime_hooks=[],
    excludes=[],
    win_no_prefer_redirects=False,
    win_private_assemblies=False,
    cipher=block_cipher,
)
# ...
pyz = PYZ(a.pure)

exe = EXE(
    pyz,
    a.scripts,
    a.binaries,
    a.datas,
    [],
    name='random_number02',
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=True,
    upx_exclude=[],
    runtime_tmpdir=None,
    console=False,
    disable_windowed_traceback=False,
    argv_emulation=False,
    target_arch=None,
    codesign_identity=None,
    entitlements_file=None,
)
